<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="Robots" content="all" />
<meta name="Googlebot" content="all" />
<meta name="Author" content="内蒙古呼和浩特市第二中学网校" />
<meta name="Copyright" content="内蒙古呼和浩特市第二中学版权所有" />
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}public.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}search_2zwx.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sGallery.js"></script>
<script type="text/javascript" src="{JS_PATH}search_common.js"></script>
</head>
<body>
{template "content","header_common"}
<div id="page">



<div id="boardbox">
	<div class="crumb">
		<b>当前位置：</b><a href="{APP_PATH}">首页</a><span> >> </span>{catpos($catid)}搜索
	</div><!-- css class crumb end -->
	
	<div class="search_results">
		<form name="myform" method="get" action="">
			{loop $forminfos $field $info}
				<span class="class">
					<span>{$info[name]}:</span>
					{$info[form]}{if $info[formtype]=='datetime'}之后{/if}
				</span>
			{/loop}
			<span class="class">
				<span>排序方式</span>
				<select name="orderby" id="orderby"  size="1">
					<option value="a.id DESC" >发布时间 降序</option>
					<option value="a.id ASC" >发布时间 升序</option>
				</select>
			</span>
			<span class="class">
				<span>&nbsp;</span>
				<div class="btn"><input type="submit" value="搜索" /></div>
				<input type="hidden" name="m" value="content" /> 
				<input type="hidden" name="c" value="search" /> 
				<input type="hidden" name="a" value="init" /> 
				<input type="hidden" name="catid" value="{$catid}" /> 
				<input type="hidden" name="dosubmit" value="1" />
			</span>
		</form>
		<span class="clear">&nbsp;</span>
		<span class="resultslist">
			<span class="summary">共搜索到 <strong style="color:#F00;">{php echo intval($total);}</strong> 条结果</span>
			<ul>
				{loop $datas $r}
					<li>
						{if $r[thumb]}
							<a href="{$r[url]}" target="_blank"><img height="60" width="60" src="{thumb($r[thumb],60,60)}"></a>
						{/if}
						<a href="{$r[url]}" target="_blank" title="{$r[title]}">{$r[title]}</a>
						<span class="info">
							<span>
								分类：
								<a href="{if strpos($CATEGORYS[$r[catid]][url],'http://')===false}{$siteurl}{$CATEGORYS[$r[catid]][url]}{else}{$CATEGORYS[$r[catid]][url]}{/if}" class="blue f12 fn">{$CATEGORYS[$r[catid]][catname]}</a>
							</span>
							<span>发布时间：{date('Y-m-d H:i',$r[updatetime])}</span>
							<span></span>
						</span>
						<p>{$r[description]}</p>
					</li>
				{/loop}
			</ul>
			<div id="pages" class="text-c">{$pages}</div>
		</span>
	</div><!-- css class search_results end -->
	
	<div class="rightside">
		<span class="ad">
		{pc:content  action="position" posid="14" order="id" num="5" cache="0"}
		<span class="hotboard" style="margin:0px;">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">热门搜索资源</span></h3>
			<span class="outerbox">
				<ul>
			 {loop $data $k $v}
				  <li><a href="{$v[url]}" title="{$v[title]}" target="_blank">{$v[title]}</a></li>
				  {/loop}
			</ul>
			</span>
		</span>
		{/pc}
		</span>		
		<span class="hotboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">频道总排行</span></h3>
			<span class="outerbox">
				<ul>
				{pc:content  action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}
					{loop $data $r}
						<li><a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title], 28, '')}</a></li>
					{/loop}
				{/pc}
				</ul>
			</span>
		</span>
		
		<span class="seboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">频道本月排行</span></h3>
			<span class="outerbox">
				{pc:content action="hits" catid="$catid" num="8" order="monthviews DESC" cache="3600"}
				<ul class="content rank">
					{loop $data $r}
					<li><a href="{$r[url]}"{title_style($r[style])} title="{$r[title]}">{str_cut($r[title],56,'...')}</a><span style="margin-left:20px;">({number_format($r[monthviews])})</span></li>
					{/loop}
				</ul>
				{/pc}
			</span>
		</span>
	</div><!-- css class rightside end -->
	
</div><!-- css id boardbox end -->


{template "content","footer_cat"}